﻿class @AuthorsBooksModel extends Backbone.Model
    defaults:
        AuthorsBooks: []
        Categories: []
        AuthorId: ''

    url: ->
        url = SiteMap.Authors.Show + "/" + @attributes.AuthorId
        return url

    parse: (response) ->
        attr = {
            AuthorsBooks: response.AuthorsBooks
            Categories: response.Categories
        };